import axios from 'axios'
import store from '../store/index'

const Server = axios.create({
  baseURL:store.state.ip, 
  timeout: 8000
  })


  Server.interceptors.request.use((config)=>{
    return config
  },(error)=>{
    return Promise.reject(error)
  })



  Server.interceptors.response.use((config)=>{
    return config
  },(error)=>{
    return Promise.reject(error)
  })

export default Server